<%@ page contentType="text/html" pageEncoding="UTF-8" session="false"%>
<%@taglib prefix="c"  uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="vdab" uri="http://vdab.be/tags" %>
<c:set var="contextPath" value="${pageContext.servletContext.contextPath }"/>
<!doctype html>
<html lang="nl">
  <head>
    <title>Frituur Frida - sausen</title>
    <link rel="stylesheet" href="${contextPath}/styles/default.css"/>
  </head>
  <body>
  	<vdab:menu/>
    <h1>Cookie voorbeeld</h1>
    <c:url value="/cookies.htm" var="action"/>
    <form method="post" action="${action}" id="naamform">
      <label>Naam<input name="naam" value="${naam}" autofocus/></label>
      <input type="submit" value="Onthoud me" id="onthoudknop"/>
    </form> 
    </body>
  <script>
    document.getElementById('naamform').onsubmit = function() {
      document.getElementById('onthoudknop').disabled = true;
    };
  </script>
</html> 